﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="BannerSearch.ascx.vb" Inherits="FrontEnd_Control_BannerSearch" %>
<%@ Import Namespace="Cls_Common" %>
<script type="text/javascript">
    $(function () {

        $("#<%=btnSearh.ClientID %>").click(function () {
            var url = '<%= ConfigurationManager.AppSettings("MainDomain") %>';
            
            if ($("#<%=ddlTypeSearch.ClientID %>").val() == 0) {
                location.href = url + "tim-kiem.html?s=" +  $("#<%=txtSearch.ClientID %>").val();
                return false;

            }
            else {

                location.href = url + "tim-kiem.html?s=" + $("#<%=txtSearch.ClientID %>").val();
                return false;
            }
        });

    });
</script>

<div class="banner_pages">
    <!-- logo pages buy-->
    <div class="logo_pages">
        <a href='<%=MainDomain %>' rel="nofollow">
            <img src='<%=MainDomain & "FrontEnd/images/logo_oto.png"%>'  border="0" align="middle" alt="muaban24hnet.vn logo"/>
      </a>
    </div>
    <!-- end logo pages buy-->
    <!-- box search -->
    <div class="boxSearch_pages">
        <div class="text_search">
            <asp:TextBox ID="txtSearch" runat="server" CssClass="input_search"  placeholder="Từ khóa"
                style="width: 100%"></asp:TextBox>

        </div>
        <div class="text_select">
            <asp:DropDownList ID="ddlTypeSearch" CssClass="input_selectcategory" runat="server" style="width: 100%">                
                <asp:ListItem value="0">Tin bán otô</asp:ListItem>
                <asp:listItem value="1">Tin mua otô</asp:ListItem>
            </asp:DropDownList>
        </div>
        <div class="cell_btnsearch">
            <asp:Button ID="btnSearh" CausesValidation="false" runat="server" CssClass="btn_search" Text="Tìm kiếm" />
        </div>
    </div>
    <!-- end box search -->
</div>

<div class="rowmenu_pages">
    <div class="bg_menuleft">
        &nbsp;</div>
    <div class="menu_pages">
        <div class="tabs_menu">
           
            <ul>
               <li><a href='<%=ResolveURL("~/") %>'><span>Trang chủ</span></a></li>

             <asp:Repeater ID="rptMenu" runat="server">
                 <ItemTemplate>
                 <asp:Literal ID="ltrTitle" runat="server" />        
            </ItemTemplate>
            </asp:Repeater>
            </ul>
           
        </div>
        <!-- dattime -->
        <div class="box_search">
        </div>
        <!-- end dattime -->
    </div>
    <div class="bg_menuright">
        &nbsp;</div>
</div>

